﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="AddUser.aspx.cs" Inherits="AddUser" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">   
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <ext:Panel ID="Panel1" runat="server" Title="Add User" PaddingSummary="5px 5px 0"
        Width="790px" Frame="true" ButtonAlign="Center" Layout="Form">
        <Items>
            <ext:DropDownField id="Field2" runat="server" FieldLabel="UserType">
                <Component>
                    <ext:Panel ID="Panel2" runat="server" Width="300" Height="80" Layout="column">
                        <Items>
                            <ext:MenuPanel ID="MenuPanel1" runat="server" Border="false" ColumnWidth="0.33" SaveSelection="false" Title="UserType">
                                <Menu ID="Menu1" runat="server" ShowSeparator="false">
                                    <Items>
                                        <ext:MenuItem ID="MenuItem1" runat="server" Text="Agency" Icon="Group" />
                                        <ext:MenuItem ID="MenuItem2" runat="server" Text="Administrator" Icon="User" />
                                    </Items>
                                    <Listeners>
                                        <ItemClick Handler="#{Field2}.setValue(menuItem.text);" />
                                    </Listeners>
                                </Menu>
                            </ext:MenuPanel>
                        </Items>
                    </ext:Panel>
                </Component>
            </ext:DropDownField>
            <ext:TextField ID="TextField1" runat="server" FieldLabel="Username" AllowBlank="false"
                AnchorHorizontal="100%" />
            <ext:TextField runat="server" FieldLabel="First Name" AllowBlank="false" AnchorHorizontal="100%" />
            <ext:TextField runat="server" FieldLabel="Last Name" AllowBlank="false" AnchorHorizontal="100%" />
            <ext:TextField ID="TextField3" runat="server" FieldLabel="Citizenship Number" AllowBlank="false"
                AnchorHorizontal="100%" />
            <ext:TextField ID="TextField4" runat="server" FieldLabel="Mobile Phone" AllowBlank="false"
                AnchorHorizontal="100%" />
            <ext:TextField ID="TextField5" runat="server" FieldLabel="Home Phone" AllowBlank="false"
                AnchorHorizontal="100%" />
            <ext:TextField ID="TextField6" runat="server" FieldLabel="Work Phone" AllowBlank="false"
                AnchorHorizontal="100%" />
            <ext:TextField ID="TextField7" runat="server" FieldLabel="Home Adress" AllowBlank="false"
                AnchorHorizontal="100%" />
            <ext:TextField ID="TextField8" runat="server" FieldLabel="Work Adress" AllowBlank="false"
                AnchorHorizontal="100%" />
            <ext:TextField runat="server" FieldLabel="Email" Vtype="email" AnchorHorizontal="100%" />
        </Items>
        <Buttons>
            <ext:Button runat="server" Text="Save" />
            <ext:Button runat="server" Text="Cancel" />
        </Buttons>
    </ext:Panel>
</asp:Content>
